Egor Gorbachev
@alteregor
3 posts

How to integrate Telegram Stars Payment to your bot

Telegram Stars is a new in-app currency introduced by Telegram for purchasing digital goods and services. Users can buy Stars directly within Telegram using Apple Pay or Google Pay. This article is a step-by-step guide on how to connect Stars payments to your bot. While the example will be in Node.js, I'll show you the general ideas for accepting Stars payments so you can apply them to any language and framework.

How I built a project for myself and won a prize from Telegram

It's the translation of my own article initially published on habr.com that gained over 20000 views.

The difference between type and interface in TypeScript

Type and interface in TypeScript often confuse people because they look similar on the surface. The situation gets worse with outdated articles, biased comparisons, and style guides from some frameworks. For example, Angular has the tslint rule interface-over-type-literal enabled by default, which forces you to use interfaces instead of types wherever possible. In this article, we'll look at the difference between type and interface in TypeScript and figure out what you should actually use.